package com.hzit.page.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;

/**
    * 商品管理
    */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "tb_goods")
public class TbGoods implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 商家ID
     */
    @TableField(value = "seller_id")
    private String sellerId;

    /**
     * SPU名
     */
    @TableField(value = "goods_name")
    private String goodsName;

    /**
     * 默认SKU
     */
    @TableField(value = "default_item_id")
    private Integer defaultItemId;

    /**
     * 状态
     */
    @TableField(value = "audit_status")
    private String auditStatus;

    /**
     * 是否上架
     */
    @TableField(value = "is_marketable")
    private String isMarketable;

    /**
     * 品牌
     */
    @TableField(value = "brand_id")
    private Long brandId;

    /**
     * 副标题
     */
    @TableField(value = "caption")
    private String caption;

    /**
     * 一级类目
     */
    @TableField(value = "category1_id")
    private Long category1Id;

    /**
     * 二级类目
     */
    @TableField(value = "category2_id")
    private Integer category2Id;

    /**
     * 三级类目
     */
    @TableField(value = "category3_id")
    private Integer category3Id;

    /**
     * 小图
     */
    @TableField(value = "small_pic")
    private String smallPic;

    /**
     * 商城价
     */
    @TableField(value = "price")
    private BigDecimal price;

    /**
     * 分类模板ID
     */
    @TableField(value = "type_template_id")
    private Long typeTemplateId;

    /**
     * 是否启用规格
     */
    @TableField(value = "is_enable_spec")
    private String isEnableSpec;

    /**
     * 是否删除
     */
    @TableField(value = "is_delete")
    private String isDelete;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_SELLER_ID = "seller_id";

    public static final String COL_GOODS_NAME = "goods_name";

    public static final String COL_DEFAULT_ITEM_ID = "default_item_id";

    public static final String COL_AUDIT_STATUS = "audit_status";

    public static final String COL_IS_MARKETABLE = "is_marketable";

    public static final String COL_BRAND_ID = "brand_id";

    public static final String COL_CAPTION = "caption";

    public static final String COL_CATEGORY1_ID = "category1_id";

    public static final String COL_CATEGORY2_ID = "category2_id";

    public static final String COL_CATEGORY3_ID = "category3_id";

    public static final String COL_SMALL_PIC = "small_pic";

    public static final String COL_PRICE = "price";

    public static final String COL_TYPE_TEMPLATE_ID = "type_template_id";

    public static final String COL_IS_ENABLE_SPEC = "is_enable_spec";

    public static final String COL_IS_DELETE = "is_delete";
}